package com.lebang.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * cences_invite
 * @author 
 */
@Data
@ApiModel("")
public class CencesInvite implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDate createTime;

    /**
     * 记录日期
     */
    @ApiModelProperty("记录日期")
    private Integer time;

    /**
     * 今日收徒数
     */
    @ApiModelProperty("今日收徒数")
    private Integer inviteNum;

    /**
     * 有效徒弟数
     */
    @ApiModelProperty("有效徒弟数")
    private Integer validNum;

    /**
     * 新手任务完成人数
     */
    @ApiModelProperty("新手任务完成人数")
    private Integer newTaskFinish;

    /**
     * 新手任务奖励支出
     */
    @ApiModelProperty("新手任务奖励支出")
    private Long newTaskAward;

    /**
     * 提现任务完成人数
     */
    @ApiModelProperty("提现任务完成人数")
    private Integer finishNum;

    /**
     * 提现奖励支出
     */
    @ApiModelProperty("提现奖励支出")
    private Long firstCashAward;

    /**
     * 总支出
     */
    @ApiModelProperty("总支出")
    private Long allAward;

    /**
     * 应用id
     */
    @ApiModelProperty("应用id")
    private Integer appId;

    private static final long serialVersionUID = 1L;

    public CencesInvite(Integer time,Integer appId) {
        this.createTime = LocalDate.now();
        this.time = time;
        this.inviteNum = 0;
        this.validNum = 0;
        this.newTaskFinish = 0;
        this.newTaskAward = 0L;
        this.finishNum = 0;
        this.firstCashAward = 0L;
        this.allAward = 0L;
        this.appId=appId;
    }

    public CencesInvite() {
    }
}